package com.tony.svn;

import com.alibaba.fastjson.JSON;
import com.tony.pojo.SvnInfo;

import java.util.HashMap;
import java.util.Map;

/**
 * @author tony
 * @Date 2018/11/20
 */
public class Test {
    public static void main(String[] args) {
        Map<String,SvnInfo> map = new HashMap<>();
        String key ="123";
        SvnInfo svnInfo = map.get(key);
        if(svnInfo==null){
            svnInfo = new SvnInfo("1","2","3");
            map.put(key,svnInfo);
            SvnInfo svn = new SvnInfo("a","b","c");
            map.put(key,svn);
            svnInfo.setType("11");
        }
        System.out.println(JSON.toJSONString(map));
    }
}
